PS_PLOT_FILES=$(wildcard *.ps)
EPS_PLOT_FILES=$(wildcard *.eps)
FIGS=\
	$(patsubst %.ps, %.pdf,$(PS_PLOT_FILES)) \
	$(patsubst %.eps, %.pdf,$(EPS_PLOT_FILES))

all: $(FIGS)

%.pdf: %.ps
	epstopdf $<

%.pdf: %.eps
	epstopdf $<

clean:
	rm -f *.pdf